package com.chinda.modules.sys.dao;

import com.chinda.modules.sys.entity.SysMenuEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 菜单管理
 * 
 * @author chinda
 * @email 475450155@qq.com
 * @date 2021-06-16 05:52:51
 */
@Mapper
public interface SysMenuDao extends BaseMapper<SysMenuEntity> {

    /**
     * 根据用户id获取菜单
     * @param userId
     * @return
     */
    List<SysMenuEntity> selectSysMenuByUserId(Long userId);

    /**
     * 清空菜单表
     * @return
     */
    boolean truncateMenu();
}
